package com.cutJar.main;

import com.awt.core.Core;
import com.cutJar.core.CutJAR;
import com.cutJar.core.CutJARFactory;
import com.cutJar.core.NextStep;
import com.cutJar.core.FirstStep;
import com.cutJar.core.LastStep;
import com.cutJar.core.impl.CutJARImpl_Def;
import com.cutJar.core.impl.CutJARImpl_Main;

public class Main {
	public static void main(String[] args) throws Exception{
		//C:\Program Files (x86)\Java\jre1.8.0_111
		//生成class.txt文件
		/*String jrePath1  = "C:\\Program Files (x86)\\Java\\jre1.8.0_111\\bin";
		FirstStep t1 = new FirstStep();
		t1.doStart(jrePath1, "Cal");*/
		
		/*new BuildJAR("rt").setConf(jrePat();*/
		
		/*String path = com.cutJar.util.Resource.getResource("bat/b.bat").toString();
		System.out.println(path);
		String cmd = "cmd /c start "+path+" cjw";
		try {
            Process ps = Runtime.getRuntime().exec(cmd);
            ps.waitFor();
        } catch (Exception ioe) {
            ioe.printStackTrace();
        }*/
		
		//生成所需的jre文件
		/*String jrePath  = "C:\\Program Files (x86)\\Java\\jre1.8.0_111\\lib";
		new NextStep().mainStart(jrePath);
		
		//打包jar
		new LastStep().doStart();*/
		new Core().doStart();
	}
}
